package com.example.websocketdemo.config;

import com.example.websocketdemo.controller.CIMVUE.MajorLeftTankFieldController;
import com.example.websocketdemo.service.CombustibleGasOnLineMonitoringService;
import com.example.websocketdemo.service.InterlockingSignalService;
import com.example.websocketdemo.service.ProductionDataService;
import com.example.websocketdemo.service.RealTimeTankFarmDataService;
import com.example.websocketdemo.service.SHISHI.SHISHICombustibleGasOnLineMonitoringService;
import com.example.websocketdemo.service.SHISHI.SHISHIInterlockingSignalService;
import com.example.websocketdemo.service.SHISHI.SHISHIProductionDataService;
import com.example.websocketdemo.service.SHISHI.SHISHIRealTimeTankFarmDataService;

import java.io.IOException;

public class transverter {
    public void judge(String bitNumber, Double AV) throws IOException {
        //罐区
        if (bitNumber.contains("SCADA_A_LT1011") || bitNumber.contains("SCADA_A_TT1011") || bitNumber.contains("SCADA_A_LT1021") || bitNumber.contains("SCADA_A_TT1021") || bitNumber.contains("SCADA_A_LT1031") || bitNumber.contains("SCADA_A_TT1031") || bitNumber.contains("SCADA_A_LT1041") || bitNumber.contains("SCADA_A_TT1041") || bitNumber.contains("SCADA_A_LT1051") || bitNumber.contains("SCADA_A_TT1051") || bitNumber.contains("SCADA_A_LT1061") || bitNumber.contains("SCADA_A_TT1061") || bitNumber.contains("SCADA_A_LT1071") || bitNumber.contains("SCADA_A_TT1071") || bitNumber.contains("SCADA_A_LT1081") || bitNumber.contains("SCADA_A_TT1081") || bitNumber.contains("SCADA_A_LT1091") || bitNumber.contains("SCADA_A_TT1091") || bitNumber.contains("SCADA_A_LT1101") || bitNumber.contains("SCADA_A_TT1101") || bitNumber.contains("SCADA_A_LT1111") || bitNumber.contains("SCADA_A_TT1111") || bitNumber.contains("SCADA_A_LT1121") || bitNumber.contains("SCADA_A_TT1121") || bitNumber.contains("SCADA_A_LT1131") || bitNumber.contains("SCADA_A_TT1131") || bitNumber.contains("SCADA_A_LT1141") || bitNumber.contains("SCADA_A_TT1141") || bitNumber.contains("SCADA_A_LT1151") || bitNumber.contains("SCADA_A_TT1151")) {
            MajorLeftTankFieldController majorLeftTankFieldController = new MajorLeftTankFieldController();
            majorLeftTankFieldController.storage(bitNumber, AV);
            RealTimeTankFarmDataService RealTimeTankFarmDataService = new RealTimeTankFarmDataService();
            RealTimeTankFarmDataService.transferParameters(bitNumber, AV);
            SHISHIRealTimeTankFarmDataService shishiRealTimeTankFarmDataService = new SHISHIRealTimeTankFarmDataService();
            shishiRealTimeTankFarmDataService.transferParameters(bitNumber, AV);
        }

        //可燃气体
        if (bitNumber.contains("GDS_A_AT_1011") || bitNumber.contains("GDS_A_AT_1012") || bitNumber.contains("GDS_A_AT_1013") || bitNumber.contains("GDS_A_AT_1014") || bitNumber.contains("GDS_A_AT_1015") || bitNumber.contains("GDS_A_AT_1043") || bitNumber.contains("GDS_A_AT_1044") || bitNumber.contains("GDS_A_AT_1045") || bitNumber.contains("GDS_A_AT_1046") || bitNumber.contains("GDS_A_AT_1001") || bitNumber.contains("GDS_A_AT_1002") || bitNumber.contains("GDS_A_AT_1003") || bitNumber.contains("GDS_A_AT_1004") || bitNumber.contains("GDS_A_AT_1005") || bitNumber.contains("GDS_A_AT_1006") || bitNumber.contains("GDS_A_AT_1039") || bitNumber.contains("GDS_A_AT_1040") || bitNumber.contains("GDS_A_AT_1041") || bitNumber.contains("GDS_A_AT_1042") || bitNumber.contains("GDS_A_AT_1021") || bitNumber.contains("GDS_A_AT_1022") || bitNumber.contains("GDS_A_AT_1031") || bitNumber.contains("GDS_A_AT_1032") || bitNumber.contains("GDS_A_AT_1033") || bitNumber.contains("GDS_A_AT_1034") || bitNumber.contains("GDS_A_AT_1035") || bitNumber.contains("GDS_A_AT_1036") || bitNumber.contains("GDS_A_AT_1037") || bitNumber.contains("GDS_A_AT_1038") || bitNumber.contains("GDS_A_AT_3011") || bitNumber.contains("GDS_A_AT_3012") || bitNumber.contains("GDS_A_AT_5001") || bitNumber.contains("GDS_A_AT_5002") || bitNumber.contains("GDS_A_AT_0001") || bitNumber.contains("GDS_A_AT_0002") || bitNumber.contains("GDS_A_AT_0003") || bitNumber.contains("GDS_A_AT_0004")) {
            CombustibleGasOnLineMonitoringService CombustibleGasOnLineMonitoringService = new CombustibleGasOnLineMonitoringService();
            CombustibleGasOnLineMonitoringService.t(bitNumber, AV);
            SHISHICombustibleGasOnLineMonitoringService shishiCombustibleGasOnLineMonitoringService = new SHISHICombustibleGasOnLineMonitoringService();
            shishiCombustibleGasOnLineMonitoringService.t(bitNumber, AV);
        }

        //生产数据
        if (bitNumber.contains("SCADA_DO_HV2611") || bitNumber.contains("SCADA_DI_HV2611") || bitNumber.contains("SCADA_DO_HV2612") || bitNumber.contains("SCADA_DI_HV2612")) {
            ProductionDataService productionDataService = new ProductionDataService();
            productionDataService.t(bitNumber, AV);
            SHISHIProductionDataService shishiProductionDataService = new SHISHIProductionDataService();
            shishiProductionDataService.t(bitNumber, AV);
        }

        //联锁信号
        if (bitNumber.contains("D_HY1011") || bitNumber.contains("D_HY1012") || bitNumber.contains("D_HY1013") || bitNumber.contains("D_LS1152") || bitNumber.contains("D_XZSC_T101A") || bitNumber.contains("D_XZSO_T101A") || bitNumber.contains("D_XZSC_T101B") || bitNumber.contains("D_XZSO_T101B") || bitNumber.contains("D_HY1021") || bitNumber.contains("D_HY1022") || bitNumber.contains("D_HY1023") || bitNumber.contains("D_LS1142") || bitNumber.contains("D_XZSC_T102A") || bitNumber.contains("D_XZSO_T102A") || bitNumber.contains("D_XZSC_T102B") || bitNumber.contains("D_XZSO_T102B") || bitNumber.contains("D_HY1031") || bitNumber.contains("D_HY1032") || bitNumber.contains("D_HY1033") || bitNumber.contains("D_LS1132") || bitNumber.contains("D_XZSC_T103A") || bitNumber.contains("D_XZSO_T103A") || bitNumber.contains("D_XZSC_T103B") || bitNumber.contains("D_XZSO_T103B") || bitNumber.contains("D_HY1041") || bitNumber.contains("D_HY1042") || bitNumber.contains("D_HY1043") || bitNumber.contains("D_LS1122") || bitNumber.contains("D_XZSC_T104A") || bitNumber.contains("D_XZSO_T104A") || bitNumber.contains("D_XZSC_T104B") || bitNumber.contains("D_XZSO_T104B") || bitNumber.contains("D_HY1051") || bitNumber.contains("D_HY1052") || bitNumber.contains("D_HY1053") || bitNumber.contains("D_LS1112") || bitNumber.contains("D_XZSC_T105A") || bitNumber.contains("D_XZSO_T105A") || bitNumber.contains("D_XZSC_T105B") || bitNumber.contains("D_XZSO_T105B") || bitNumber.contains("D_HY1061") || bitNumber.contains("D_HY1062") || bitNumber.contains("D_HY1063") || bitNumber.contains("D_LS1102") || bitNumber.contains("D_XZSC_T106A") || bitNumber.contains("D_XZSO_T106A") || bitNumber.contains("D_XZSC_T106B") || bitNumber.contains("D_XZSO_T106B") || bitNumber.contains("D_HV1071") || bitNumber.contains("D_HV1072") || bitNumber.contains("D_HV1073") || bitNumber.contains("D_LS1092") || bitNumber.contains("D_HV1081") || bitNumber.contains("D_HV1082") || bitNumber.contains("D_HV1083") || bitNumber.contains("D_LS1082") || bitNumber.contains("D_HV1091") || bitNumber.contains("D_HV1092") || bitNumber.contains("D_HV1093") || bitNumber.contains("D_LS1072") || bitNumber.contains("D_HV1101") || bitNumber.contains("D_HV1102") || bitNumber.contains("D_HV1103") || bitNumber.contains("D_LS1062") || bitNumber.contains("D_HY1111") || bitNumber.contains("D_HY1112") || bitNumber.contains("D_HY1113") || bitNumber.contains("D_LS1052") || bitNumber.contains("D_XZSC_T111A") || bitNumber.contains("D_XZSO_T111A") || bitNumber.contains("D_XZSC_T111B") || bitNumber.contains("D_XZSO_T111B") || bitNumber.contains("D_HY1121") || bitNumber.contains("D_HY1122") || bitNumber.contains("D_HY1123") || bitNumber.contains("D_LS1042") || bitNumber.contains("D_XZSC_T112A") || bitNumber.contains("D_XZSO_T112A") || bitNumber.contains("D_XZSC_T112B") || bitNumber.contains("D_XZSO_T112B") || bitNumber.contains("D_HY1131") || bitNumber.contains("D_HY1132") || bitNumber.contains("D_HY1133") || bitNumber.contains("D_LS1032") || bitNumber.contains("D_XZSC_T113A") || bitNumber.contains("D_XZSO_T113A") || bitNumber.contains("D_XZSC_T113B") || bitNumber.contains("D_XZSO_T113B") || bitNumber.contains("D_HY1141") || bitNumber.contains("D_HY1142") || bitNumber.contains("D_HY1143") || bitNumber.contains("D_LS1032") || bitNumber.contains("D_XZSC_T114A") || bitNumber.contains("D_XZSO_T114A") || bitNumber.contains("D_XZSC_T114B") || bitNumber.contains("D_XZSO_T114B") || bitNumber.contains("D_HY1151") || bitNumber.contains("D_HY1152") || bitNumber.contains("D_HY1153") || bitNumber.contains("D_LS1032") || bitNumber.contains("D_XZSC_T115A") || bitNumber.contains("D_XZSO_T115A") || bitNumber.contains("D_XZSC_T115B") || bitNumber.contains("D_XZSO_T115B")) {
            InterlockingSignalService interlockingSignalService = new InterlockingSignalService();
            interlockingSignalService.transferParameters(bitNumber, AV);
            SHISHIInterlockingSignalService shishiinterlockingSignalService = new SHISHIInterlockingSignalService();
            shishiinterlockingSignalService.transferParameters(bitNumber, AV);
        }


        //环保气象


    }
}
